Fix missing includes - #275
astrojuanlu wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughAdded missing header includes to framework source files. The changes add Merge Risk: ⚪ Minimal · up to This change restores explicit Qt and extension-type header dependencies so the framework no longer relies on transitive includes, without changing runtime behavior. No current merge-readiness risk remains. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation The changes address parts of issues [ Resolution Add all remaining include directives required by issues [ ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Most of the include fixes were already addressed by #256, which is newer than the vendored version in Audacity 4 at the time of opening this PR. So the CodeRabbit feedback is not applicable. |
extensionsession.h uses 'const Manifest&' as a parameter type but only includes iextensionsession.h and scriptengine.h, neither of which provides the Manifest definition (declared in extensionstypes.h). This compiles only when extensionstypes.h is transitively included through other headers, which varies between Qt distributions. Closes musescore#272 Assisted-by: OpenRouter:z-ai/glm-5.2 opencode
extapiv1.cpp and uimodule.cpp call qmlRegisterType() and qmlRegisterSingletonType() without including <QQmlEngine>, which declares these functions in Qt 6. The calls compile only when <QQmlEngine> is transitively included through other headers, which varies between Qt distributions. Closes musescore#273 Assisted-by: OpenRouter:z-ai/glm-5.2 opencode
…getBase.cpp DockWidgetBase.cpp calls methods on QAction objects (e.g. setEnabled(), triggered signal) but does not include <QAction>. The code compiles only when <QAction> is transitively included through other QtGui headers, which varies between Qt distributions. This is already fixed in upstream KDDockWidgets 2.x, but the vendored snapshot is 1.4.95. Closes musescore#274 Assisted-by: OpenRouter:z-ai/glm-5.2 opencode
c8acff7 to
98ebb6e
Compare
|
Thanks @astrojuanlu
Audacity side, we now have: audacity/audacity#12178 and audacity/audacity#12189 I just rebased on If anything still fails, please paste the compile error and we'll take a look. Otherwise I'd suggest closing #272/#273 (and this PR) as addressed, and keeping #274 open until you can confirm from your KDE Qt test. |
|
Hi @astrojuanlu did you had a chance to try with your KDE Qt setup? thanks |
|
Sorry @luapmartin , I did not have a chance to try this and I might need a few days to get back to it. I see you're already merging some PRs, if they supersede this one feel free to close. I'll try to get back to you soon, but don't wait for me. Thanks! |
Resolves: #272
Resolves: #273
Resolves: #274
Full context in the issue reports and commit messages.
Build configuration
audacity: audacity/audacity/master
audacity platforms: linux_x64
musescore: musescore/MuseScore/main
musescore platforms: linux_x64